package com.jugheadzhou.auth.core.message;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author jugheadzhou
 * @date 2021-12-02
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class IMessage implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 消息唯一key */
    @JsonProperty("k")
    private String key;

    /** 时间戳 */
    @JsonProperty("ts")
    private long timestamp;

    /** 业务数据 */
    @JsonProperty("d")
    private String data;

}
